package com.ktgj.flight.service.impl;

import java.util.List;

import com.ktgj.common.core.utils.StringUtils;
import com.ktgj.flight.domain.FlightTicketaddressCRM;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightTicketaddressMapper;
import com.ktgj.flight.domain.FlightTicketaddress;
import com.ktgj.flight.service.IFlightTicketaddressService;

/**
 * 机票预订_取票点Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-10
 */
@Service
public class FlightTicketaddressServiceImpl implements IFlightTicketaddressService 
{
    @Autowired
    private FlightTicketaddressMapper flightTicketaddressMapper;

    /**
     * 查询机票预订_取票点
     * 
     * @param addressId 机票预订_取票点ID
     * @return 机票预订_取票点
     */
    @Override
    public FlightTicketaddress selectFlightTicketaddressById(Long addressId)
    {
        return flightTicketaddressMapper.selectFlightTicketaddressById(addressId);
    }

    /**
     * 查询机票预订_取票点列表
     * 
     * @param flightTicketaddress 机票预订_取票点
     * @return 机票预订_取票点
     */
    @Override
    public List<FlightTicketaddress> selectFlightTicketaddressList(FlightTicketaddress flightTicketaddress)
    {
        return flightTicketaddressMapper.selectFlightTicketaddressList(flightTicketaddress);
    }

    /**
     * 新增机票预订_取票点
     * 
     * @param flightTicketaddress 机票预订_取票点
     * @return 结果
     */
    @Override
    public int insertFlightTicketaddress(FlightTicketaddress flightTicketaddress)
    {
        return flightTicketaddressMapper.insertFlightTicketaddress(flightTicketaddress);
    }

    /**
     * 修改机票预订_取票点
     * 
     * @param flightTicketaddress 机票预订_取票点
     * @return 结果
     */
    @Override
    public int updateFlightTicketaddress(FlightTicketaddress flightTicketaddress)
    {
        return flightTicketaddressMapper.updateFlightTicketaddress(flightTicketaddress);
    }

    /**
     * 批量删除机票预订_取票点
     * 
     * @param addressIds 需要删除的机票预订_取票点ID
     * @return 结果
     */
    @Override
    public int deleteFlightTicketaddressByIds(Long[] addressIds)
    {
        return flightTicketaddressMapper.deleteFlightTicketaddressByIds(addressIds);
    }

    /**
     * 删除机票预订_取票点信息
     * 
     * @param addressId 机票预订_取票点ID
     * @return 结果
     */
    @Override
    public int deleteFlightTicketaddressById(Long addressId)
    {
        return flightTicketaddressMapper.deleteFlightTicketaddressById(addressId);
    }

    //配送方式-机场取票
    @Override
    public List<FlightTicketaddressCRM> flightTicketList(String airportId, String orgAirportId) {
        return flightTicketaddressMapper.flightTicketList(airportId, orgAirportId);
    }
}
